package com.logistics.team3.po;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * 城市信息表
 * City entity. @author MyEclipse Persistence Tools
 */

public class City  implements java.io.Serializable {


    // Fields    

     private String id;
     /**
      *所属省份 
      */
     private Province province;
     /**
      *城市名称 
      */
     private String name;
     private Set countries = new HashSet(0);
     private Set addresses = new HashSet(0);


    // Constructors

    /** default constructor */
    public City() {
    }

    
    /** full constructor */
    public City(Province province, String name, Set countries, Set addresses) {
        this.province = province;
        this.name = name;
        this.countries = countries;
        this.addresses = addresses;
    }

   
    // Property accessors

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }

    public Province getProvince() {
        return this.province;
    }
    
    public void setProvince(Province province) {
        this.province = province;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public Set getCountries() {
        return this.countries;
    }
    
    public void setCountries(Set countries) {
        this.countries = countries;
    }

    public Set getAddresses() {
        return this.addresses;
    }
    
    public void setAddresses(Set addresses) {
        this.addresses = addresses;
    }

}